﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TST.SharePointObjects
{
    public class ObjectReferenceSelection
    {
        private ObjectReferenceScope _scope;
        private ObjectReferenceType _referenceType;
        private string _objectId;
        private string _search;
        private Guid _webApplicationId;
        private Guid _farmId;

        public ObjectReferenceSelection()
        {
            _scope = ObjectReferenceScope.Web;
            _referenceType = ObjectReferenceType.Unknown;
        }

        public ObjectReferenceSelection(ObjectReferenceScope scope, ObjectReferenceType referenceType, string objectId, string search)
        {
            _scope = scope;
            _referenceType = referenceType;
            _objectId = objectId;
            _search = search;
        }

        public ObjectReferenceScope Scope
        {
            get {return _scope;}
            set {_scope = value;}
        }

        public ObjectReferenceType ReferenceType
        {
            get { return _referenceType; }
            set { _referenceType = value; }
        }

        public Guid WebApplicationId
        {
            get { return _webApplicationId; }
            set { _webApplicationId = value; }
        }

        public Guid FarmId
        {
            get { return _farmId; }
            set { _farmId = value; }
        }

        public string ObjectId
        {
            get { return _objectId; }
            set { _objectId = value; }
        }

        public string Search
        {
            get { return _search; }
            set { _search = value; }
        }
    }
}
